<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ include file="/WEB-INF/layout/header.jsp"%>
<h1>
	<fmt:message key="message.list" />
</h1>
<div class="span-8">
	<ul>
		<c:forEach items="${messages}" var="message">
			<li class="payload-container"><a href="message/${message.id}"
				<c:choose>
				<c:when test="${message.inbound == true}"> class="inbound"</c:when>
				<c:when test="${message.inbound == false}"> class="outbound"</c:when>
				</c:choose>>
					<b>${message.transactionId}</b>: <fmt:message
						key="message.inbound.${message.inbound}" /> (<fmt:formatDate
						value="${message.logdate}" pattern="HH:mm dd.MM.yyy" />)
			</a><span class="payload"><c:out value="${message.payload}"
						escapeXml="true" /></span></li>
		</c:forEach>
	</ul>
</div>

<div id="message-info" class="span-16 last">
	<div class="inner">
		<h3>
			<fmt:message key="message.payload" />
		</h3>
		<pre class="span-15" id="payload"></pre>
	</div>
</div>

<%@ include file="/WEB-INF/layout/footer.jsp"%>